Skip to content

Add SharedKernel.Api test coverage and WebApi sample polish#343

Merged
Vulthil merged 1 commit into
mainfrom
test/api-coverage-and-sample-polish
Jul 21, 2026
Merged

Add SharedKernel.Api test coverage and WebApi sample polish#343
Vulthil merged 1 commit into
mainfrom
test/api-coverage-and-sample-polish

Conversation

@Vulthil

@Vulthil Vulthil commented Jul 21, 2026

Copy link
Copy Markdown
Owner

Summary

  • Extend tests/Vulthil.SharedKernel.Api.Tests (created by a prior PR) so every public
    member of Vulthil.SharedKernel.Api is exercised: BaseController,
    DependencyInjection's OpenAPI registration methods, the full ResultHttpExtensions
    overload set including the previously-untested ToCreatedAtRouteHttpResult, and the
    internal GlobalExceptionHandler; broadened EnrichProblemDetails and MapEndpoints
    assertions.
  • Polish samples/WebApi: add a SideEffectsController demonstrating the kept
    BaseController + ToActionResult MVC path so the sample's AddControllers()/
    MapControllers() registration is actually exercised, flow the endpoint-bound
    CancellationToken through the Create/GetById/GetAll handlers, and let the
    compiler infer Create's minimal-API return type.
  • Add an integration test for the new controller route in samples/WebApi/WebApi.Tests.

Verification

  • dotnet build Vulthil.SharedKernel.slnx — clean, 0 warnings / 0 errors.
  • tests/Vulthil.SharedKernel.Api.Tests — 89/89 passing on net9.0 and net10.0.
  • samples/WebApi/WebApi.Tests — 9/9 passing on net10.0 (the sample's only TFM),
    including a full round trip through real Postgres/RabbitMQ Testcontainers.
  • No src/**/PublicAPI.*.txt changed.

Backport to v1.0: no — test and sample changes ship with the next release.

@Vulthil
Vulthil merged commit 95c9b1a into main Jul 21, 2026
6 checks passed
@Vulthil
Vulthil deleted the test/api-coverage-and-sample-polish branch July 21, 2026 15:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant